import { createApp } from 'vue'
import App from './App.vue'

// 引入 Vue-Router
import router from './router'

// 引入 Vuex
import { store } from './store'

// 引入 Element-UI
import ElementImport from '/plugin/element'
import './theme/index.css'

const app = createApp(App)
ElementImport(app)
app
  .mixin({
    computed: {
      t() {
        console.log(this.lang)
        console.log(store.state.lang)
        console.log(this.lang[store.state.lang])
        return this.lang[store.state.lang]
      }
    }
  })
  .use(router)
  .use(store)
  .mount('#app')


